<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="mfuny.ggongal.admin.http.HttpTerms" %>
<%@ page import="mfuny.ggongal.admin.debug.Debug" %>
<%@ page import="org.json.simple.*" %>
<%@ page trimDirectiveWhitespaces="true" %>
<%
request.setCharacterEncoding( "utf-8" );
response.setContentType( "text/html; charset=utf-8" );

HttpTerms terms = new HttpTerms();
String tag = request.getParameter("tag");

//최근 약관 내용 가져오기.
//terms_type = 0 : 개인보호정책.
//terms_type = 1 : 서비스 이용약관.
if (tag.equals("terms_getContent")) {
	try{
		int terms_type = Integer.parseInt(request.getParameter("terms_type"));
		JSONObject json = terms.getTermsContent(terms_type);
		out.print(json.toJSONString());
	}catch(Exception e){
		Debug.toDebugFile(e, tag);
	}
}

%>